import request from '@/utils/request'

const api = {
    basepath: '/buildForm'
}

export function buildForm(parameter) {
    return request({
        url: api.basepath,
        method: 'get',
        params: parameter
    })
}

export function saveForm(moduleName, formType, unid, parameter) {
    return request({
        url: "/saveOrUpdateForm/" + moduleName + "/" + formType + "/" + unid,
        method: 'post',
        data: parameter
    })
}